<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
		<script type="text/javascript" src="js/jquery-1.11.2.min.js" ></script>
	</head>
	<body>
		<form action="">
			姓名:<input type="text" name="username" />
			密码:<input type="password" name="password" />
		</form>
		<button>提交</button>
		<script>
			$("button").click(function(){
				var formxx=$("form").serialize();
				console.info(formxx);
			})
		</script>
	</body>
</html>
